<?php
	
class Table_Album extends Zend_Db_Table_Abstract
{
    protected $_name    = 'album';
    protected $_primary = 'ALBUM_NUMERO';
    protected $_sequence = TRUE;
 	
	public function insertAlbum($numMaisonDisc, $titre, $date){
		$data = array('MAISONDISQUE_NUMERO'=> $numMaisonDisc, 'ALBUM_TITRE' => $titre,
		'ALBUM_DATE' => $date);
		$this->insert($data);
	}
	
	public function getDetailAlbum ($idAlbum){
		return $this->fetchRow($this
			->select()
			->where('ALBUM_NUMERO= ?', $idAlbum));
	}
}